home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
misc_pto
/
29ksim
/
boot.r
< prev
next >
Wrap
Text File
|
1987-07-14
|
1KB
|
65 lines
.title "AVP boot rom"
;******************************************************************************
;
; boot rom
; User Mode
; Physical Data
; Physical Code
; Thawed (Not Frozen)
; Vector Trap (route traps through table)
; Cache On
; Traps Off
;
;******************************************************************************
.include "sr.h"
.include "macro.h"
brom .seg code, absolute 0 ; boot rom
MAIN .equ 1024 * 4 ; where user code starts
.use brom
reset: jmp [absolute] init
xor gr01, gr02, gr02 ; zero stack pointer
.block 16-. ; skip to place to put warn code
warn: jmp [absolute] warn
or lr00, lr00, lr00
init:
cfTemp .set VECTOR_FETCH
cfTemp .set VECTOR_RAM + cfTemp
cfTemp .set IBM_ORDER + cfTemp
cfTemp .set COPROC_ABSENT + cfTemp
cfTemp .set CACHE_ENABLE + cfTemp
mtspim CFG, cfTemp
const gr03, 0ffff#h ; initialize timer
consth gr03, 0ff#h
mtsp TC, gr03
mtspim TR, 0#h ; turn off timer traps, etc
mtspim MMU, PAGE_SIZE_4K + 55#h; 55 is proc. id number
mtspim VAB, 0 ; vector fetch area
mtspim RBP, 00000#h ; no protection
mtspim CHC, 0 ; turn off cvb and mlb
opsTemp .set THAW
opsTemp .set NO_ROM_EN + opsTemp
opsTemp .set PHYS_DATA + opsTemp
opsTemp .set PHYS_INSTR + opsTemp
opsTemp .set USER + opsTemp
opsTemp .set DISABLE_INT + opsTemp
opsTemp .set ENABLE_ALL + opsTemp
mtspim OPS, opsTemp
mtspim PC1, MAIN
mtspim PC0, MAIN + 4
ireti
nop
nop
.end